import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
    state: {
        count: 0,
        PagesPilotIndex: '1',//Home导航
        user:
            {
                userName:"毛桃",
                userImg:'',
                fondness:['都市','系统','爽文'],
                level:5,
                balance:22,
                hobby:[
                    '单女主','都市','搞笑','轻松'
                ],

                bookshelf:[
                    {
                        bookName:'火力种田王',
                        bookImg:'../../assets/26798s.jpeg',
                        bookAuthor:'豪哥',
                        bookStart:12
                    },{
                        bookName:'都市黑鸡传说',
                        bookImg:'../../assets/26798s.jpeg',
                        bookAuthor:'豪哥',
                        bookStart:12
                    },{
                        bookName:'唱跳Rap',
                        bookImg:'../../assets/26798s.jpeg',
                        bookAuthor:'豪哥',
                        bookStart:12
                    }
                ],
                message:{
                    unread:3,
                    list:[
                        {
                            targetImg:'',
                            title:'系统消息',
                            content:'毛桃,今天还没签到呢~'

                        },{
                            targetImg:'',
                            title:'大春 等2人点赞',
                            content:'"专插本失败出去抢劫"'

                        },{
                            targetImg:'',
                            title:'豪哥 @我:',
                            content:'@毛桃 别催啦别催啦!!!!!!!!!!!!!!!!!!!'

                        }

                    ]
                }

            }

    },
    mutations: {
        setCount (state) {
            state.count++
        }
    }
})